package com.glodon.utils.dto;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2015-11-16.
 */
public class PageableDto<T> implements Serializable {
    private List<T> data;

    private int page=0;

    private int size=10;

    private int totalCounts=0;

    private boolean success=true;

    public void setSuccess(boolean b){
        this.success=b;
    }

    public boolean getSuccess(){
        return this.success;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotalCounts() {
        return totalCounts;
    }

    public void setTotalCounts(int totalCounts) {
        this.totalCounts = totalCounts;
    }
}
